﻿using System;
using System.Collections;
using System.Collections.Generic;

using AUV5.Model;

namespace AUV5.DAL.Interface
{
    /// <summary>
    /// 功能：     OrderItem 的业务接口，定义业务功能
    /// 作者：     lwl
    /// 日期：     2011/10/14
    /// 修改日期： 
    /// 修改人：
    /// 修改内容：
    /// </summary>
    public interface IOrderItemDao
    {
        /// <summary>
        /// 得到最大行数
        /// </summary>
        /// <returns></returns>
        int GetMaxCounts();

        /// <summary>
        /// 得到列表
        /// </summary>
        /// <returns></returns>
        System.Collections.Generic.IList<OrderItem> GetList();

        /// <summary>
        /// 通过不同参数得到列表
        /// </summary>
        /// <param name="objParameters"></param>
        /// <returns></returns>
        System.Collections.Generic.IList<OrderItem> GetListByParameters(object objParameters);

        /// <summary>
        /// 得到明细
        /// </summary>
        /// <param name="OrderItemID"></param>
        /// <returns></returns>
        OrderItem GetDetail(System.String orderitemid);

        /// <summary>
        /// 新建
        /// </summary>
        object Add(OrderItem orderitem);

        /// <summary>
        /// 修改
        /// </summary>
        int Update(OrderItem orderitem);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="OrderItemID"></param>
        int Delete(System.String orderitemid);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="orderitem"></param>
        int Delete(OrderItem orderitem);

        /// <summary>
        /// 通过条件得到服务个数
        /// </summary>
        /// <param name="objParamters"></param>
        /// <returns></returns>
        int GetOrderItemQuantityCountByCondition(object objParamters);


        /// <summary>
        /// 通过订单ID得到订单项详情
        /// 创建人：Wilson
        /// 创建时间：2011-10-30
        /// </summary>
        /// <param name="orderId"></param>
        /// <returns></returns>
        OrderItem GetOrderItemByOrderID(string orderId);

        /// <summary>
        /// 通过订单ID得到订单附加服务
        /// 创建人：Wilson
        /// 创建时间：2011-12-18
        /// </summary>
        /// <param name="objParamters"></param>
        /// <returns></returns>
        System.Collections.Generic.IList<OrderItem> GetOrderItemExtra(object objParamters);

    }
}
